﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<KLS.PPDS.Core.Entity.Article>>" %>
<%@ Import Namespace="KLS.PPDS.Utility.Extension" %>




<% foreach (var article in Model)
{%>
  

<div id="page-0" class="ui-widget-content Page droppable standby">   

<%if (article.Id>0)
{%>	
  


              <div id="article-<%=article.Id %>" class="draggable  article-region">
                 <label  onclick="<%=string.Format("OpenArticle('/Article/index?publicationId={0}&&articleId={1}')",article.PublicationId,article.Id) %>"  title="<%=article.Headline %>" ><%=article.Headline.Trancate(11)%></label>                 
                     <%if(article.Content.Count()>0)
                    {
                        foreach (var articleContent in article.Content)
                            {
                                if (!string.IsNullOrEmpty(articleContent.Headline))
                                {
%>
                              <br />
                              <label  onclick="<%=
                                        string.Format("OpenArticle('/Article/index?publicationId={0}&&articleId={1}')",
                                                      article.PublicationId, article.Id)%>"  title="<%=articleContent.Headline%>" ><%=articleContent.Headline.Trancate(11)%></label>                 
                            <%
                                }

                            }
        
                    } %>
              </div>
               <br />
      
<%} %>     
</div>

<%} %>